package com.spring.xiatian.user.service.impl;

import com.spring.xiatian.user.dao.SystemUserDao;
import com.spring.xiatian.user.entity.SystemUser;
import com.spring.xiatian.user.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Created by xiaoxia on 2017/11/30 0030 13:37.
 */
@Service
public class SystemUserServiceImpl implements SystemUserService{

    @Autowired
    SystemUserDao systemUserDao;

    @Override
    public SystemUser findSystemUserById(Long id) {
        return systemUserDao.queryUserByid(id);
    }

    @Override
    public List<SystemUser> queryUserList() {
        return systemUserDao.findAll();
    }

}
